package org.gensokyo.shanbay.dao

/**
 * Created by liusen on 15-11-24.
 */

import com.typesafe.config.ConfigFactory
import slick.driver.MySQLDriver.api._

trait MySqlTrait {
  private val config = ConfigFactory.load("shanbay.conf")

  val db = Database.forURL(
    url = config.getString("shanbay.url"),
    driver = config.getString("shanbay.driver"),
    user = config.getString("shanbay.user"),
    password = config.getString("shanbay.password")
  )

}
